﻿{%extends "base.html"%}

{%block menu%}
		    <li><a href="/" class="navbut3"><span>Home</span></a></li>
		    <li><a href="/publicadas" class="navbut3"><span>Top Actions</span></a></li>
		    <li><a href="/novas" class="navbut3"><span>New Actions</span></a></li>
		    <li><a href="/enviar" class="navbut3"><span>Submit</span></a></li>
		    <li><a href="/perfil" class="navbut4"><span>Profile</span></a></li>			
		    <li><a href="/sobre" class="navbut3"><span>About</span></a></li>
{%endblock%}


{%block body%}

		{%if status%}	
			<h2>	{{user.nome}} </h2>			
			<h3 style="border:0px">Actions</h3>
				{% for proposta in propostas %}
					<a href="/story?title={{proposta.titulo}}">{{proposta.titulo}}</a><br/>
				{%endfor%}
			<h3 style="border:0px">Comments</h3>
				{% for comentario in comentarios %}
					<a href="/story?title={{comentario.proposta}}">{{comentario.titulo}}</a><br/>
				{%endfor%}
			<h3 style="border:0px">Votes</h3>
				{% for voto in votos %}
					<a href="/story?title={{voto.proposta}}">{{voto.proposta}}</a><br/>
				{%endfor%}
				
				
			{%else%}					
					<a href="{{ url }}">{{ url_linktext }}</a>						
			{%endif%}                        										

<br /><br />

{%endblock%}